/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   PublicNetHead.h
 * Author: Administrator
 *
 * Created on 2018年2月5日, 下午2:32
 */

#ifndef PUBLICNETHEAD_H
#    define PUBLICNETHEAD_H

#ifdef __MINGW32__
#include<winsock2.h>
#include<ws2tcpip.h>
#include<_bsd_types.h>
#include"PublicNetStruct.h"
#else
//socket相关函数
//#include<sys/socket.h>
//sockaddr_in及相关协议
//#include<netinet/in.h>
//inet_network及其它转换函数
#include<arpa/inet.h>
//ioctl设置套接字属性或获取网卡属性
#include<sys/ioctl.h>
//icmp包头
#include<netinet/ip_icmp.h>
#include<netinet/icmp6.h>
//udp包头
#include<netinet/udp.h>
//tcp包头
#include<netinet/tcp.h>
//网卡属性
//#include<net/if.h>
//网卡IP列表
//#include<ifaddrs.h>
#endif

#endif /* PUBLICNETHEAD_H */

